import pinia from "@/stores"
import { useUserStore } from "@/stores/modules/userStore"
const useStore=useUserStore(pinia)
export const isHasbutton=(app:any)=>{
    //全局自定义组件
    app.directive('has',{
        mounted(el:any,options:any) {
            if(useStore.buttons.includes(options.value)){
                el.parentNode.removeChild(el)
            }
        },
    })
}